import instance from "@/util/axios.js"

/**
 * 获取班级信息
 */
export const getClass = async (condition) =>
await instance.get(`/api/super/getClass/${condition}`)

/**
 * 为班级分配宿舍
 * @param {Array} RoomArr 宿舍数组
 * @param {Number} classId 班级id
 */
export const distributionRoom = async (RoomArr,classId) =>{
    return await instance.post("/api/super/distributionRoom",{
    RoomArr,classId
})
    
}
